extends CardState

# 进入新状态
func enter() -> void:
	card_ui.color.set('color', Color('#FBEBDF'))
	card_ui.state.text = 'CLICKED'
	# 启动DropPointDetector（Area2D）节点 的监听，作用：检测和卡牌放置区域的碰撞
	card_ui.drop_point_detector.monitoring = true

func on_input(event: InputEvent)->void:
	# 如果事件是鼠标移动
	if event is InputEventMouseMotion:
		# 从点击过渡到拖动
		transition_requested.emit(self, CardState.State.DRAGGING)
